// $Id: physicsmanager.h 470 2008-05-27 16:27:22Z agjermun $
// definition of physics manager
//
// ml278
// Copyright (C) 2008 Bjørn Øivind Bjørnsen, Aleksander Gjermundsen, Knut Andre Tidemann, Thomas Hansen
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#ifndef __PHYSICSMANAGER_H
#define __PHYSICSMANAGER_H

#include "Ogre.h"
#include "OgreSingleton.h"

#include "physicsinfo.h"
#include "colshapemanager.h"

using namespace Ogre;
using namespace std;

/**
 * Manager which simplifies creation of physical objects.
 * Provides methods which creates PhysicsInfo objects based on the arguments specified (either the
 * regular arguments of mass, collisionshape, inertia and transform, or through loading of a COLLADA-file).
*/
class PhysicsManager : public Singleton<PhysicsManager>
{
private:
public:
	PhysicsManager();
	~PhysicsManager();

	PhysicsInfo getPhysicsInfo(btScalar &mass, ColShapeManager::ColShapeKey &colShapeKey, 
			btVector3 &localIntertia, btTransform &startTransform);
	PhysicsInfo getPhysicsInfo(String colladaFile);
};

#endif // #ifndef __PHYSICSMANAGER_H
